package org.fhm.zdte.client.provider;

import org.fhm.zdte.common.annotation.MapperParameter;
import org.fhm.zdte.common.annotation.Provider;
import org.fhm.zdte.common.annotation.RequestMapping;
import org.fhm.zdte.common.pojo.Result;


/**
 * Common servlet provider.
 *
 * @author 谭波
 * @since 2024/4/6
 */
@Provider
@RequestMapping("/common")
public class CommonProvider {

    @RequestMapping("/pull")
    private Result<Void> pull(@MapperParameter("filePath") String filePath) {
        return Result.getResultWithFile(filePath);
    }

}
